POST
/
1
/
clusters
/
mapping
// Initialize the client
var client = new SearchClient(new SearchConfig("ALGOLIA_APPLICATION_ID", "ALGOLIA_API_KEY"));

// Call the API
var response = await client.AssignUserIdAsync(
  "userID",
  new AssignUserIdParams { Cluster = "theCluster" }
);
// >LOG
{
  "createdAt": "2023-07-04T12:49:15Z"
}

Authorizations

x-algolia-application-id
string
header
required

Your Algolia application ID.

x-algolia-api-key
string
header
required

Your Algolia API key with the necessary permissions to make the request. Permissions are controlled through access control lists (ACL) and access restrictions. The required ACL to make a request is listed in each endpoint's reference.

Headers

X-Algolia-User-ID
string
required

Unique identifier of the user who makes the search request.

Example:

"user1"

Body

application/json

Assign userID parameters.

Response

200
application/json

OK

Response and creation timestamp.